<!--<?php
print <<<EOT
-->

<script src="../css/edit.js"></script>

<!--Content Start-->
<table width="95%" border="0" align="center">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>
      <table width="60%" border="0" align="left" cellpadding="3" cellspacing="3">
        <tr> 
          <td>
          
            <table border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td width="50%">
                  <form name="form1" method="post" action="p_inventory_add.php">
                  <table border="0" cellspacing="1" cellpadding="1">
                    <tr> 
                      <td><!--input type="text" class="text" name="name" size="20" value="Enter Inventory ..." onFocus="form1.name.value=''"--></td>
                      <td><input name="image" type="image"  onCLick="form1.submit" src="../images/admin/bt_add.gif"></td>
			          <td><img src="../images/admin/shim.gif" width=30></td>
                    </tr>
                  </table>
                  </form>
                </td>
                <td align="right">
                <form name="form2" method="get">
                  <table border="0" cellspacing="1" cellpadding="1">
                    <tr>
                      <td><input type="text" class="text" name="Search" size="20" value="Enter Name ..." onFocus="form2.Search.value=''"><input type="hidden" name="action" value="search"></td>
			          <td><input name="image" type="image" src="../images/admin/bt_search.gif"></td>
			          <td><input name="image" type="image" src="../images/admin/bt_listall.gif" onClick="location.href='/admin/p_inventory.php'"></td>
                    </tr>
                  </table>
                  </form>
			    </td>
              </tr>
            </table>
            
            <span id="edit_area"></span>
            
            $page_show

            <table width="100%" border="0" cellspacing="1" cellpadding="1" class="tb">
              <tr class="tbheader"> 
		        <td width="23%">Name</td>				
		        <td width="31%">Type</td>						
                <td width="23%">Sequence</td>
			    <td width="23%"></td>
              </tr>

<!--
EOT;
for($i=0; $i<count($out_ary); $i++){
print <<<EOT
-->

              <tr class="tbcontent1"> 
		        <td>{$out_ary[$i]['name']}</td>
				<!--<td>{$out_ary[$i]['namezh']}</td>-->
		        <td>{$INVENTORY_TYPE_ARY[$out_ary[$i]['type']]}</td>				
                <td align="center">{$out_ary[$i]['seq']}</td>
			    <td align=center bgcolor="ECECEC">
			    <a href="javascript:getAdminEdit('edit_area', '2', '{$out_ary[$i]['id']}')"><img src="../images/admin/bt_edit.gif" border="0" alt="Edit"></a>
			    <a href="p_inventory.php?action=del&iid={$out_ary[$i]['id']}" onclick="return confirm('Delete {$out_ary[$i]['name']}?')"><img src="../images/admin/bt_delete.gif" border="0" Alt="Delete"></a>
			    <!--<a href="enquire.php?id=7"><img src="../images/admin/bt_enquiry.gif" border="0" Alt="Enquire"></a>--></td>
              </tr>

<!--
EOT;
} print <<<EOT
--> 

                            
            </table>

            $page_show

          </td>
        </tr>
      </table>
      
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p></td>
  </tr>
</table>
<!--Content End-->

<!--
EOT;
?>-->